import { Http } from '@/utils/http'

/**
 * 获取个人信息
 * @param data 
 * @returns 
 */
export function requestUserInfo ()  {
    return Http.request({
        url: '/user/getUserInfo',
        method: 'GET'
    })
}

/**
 * 更新个人信息
 * @param data 
 * @returns 
 */
export function requestUpdateUserInfo (formData: any, poemsListInfo: any)  {
    return Http.request({
        url: '/user/updateUserById',
        method: 'POST',
        data: formData,
        params: poemsListInfo
    })
}